package com.atguigu08._interface.exer2;

/**
 * ClassName: InterfaceTest
 * Package: com.atguigu08._interface.exer2
 * Description:
 *
 * @Author ZY
 * @Create 00:35
 * @Version 1.0
 */
public class InterfaceTest {
    public static void main(String[] args) {

        Compare0bject c1 = new ComparableCircle(2.3);
        Compare0bject c2 = new ComparableCircle(5.3);

        int compareValue = c1.compareTo(c2);
        if(compareValue > 0){
            System.out.println("c1对象大");
        } else if (compareValue < 0) {
            System.out.println("c2对象大");
        }else{
            System.out.println("c1和c2相等");
        }

    }
}
